import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取物料入库列表
  GetPageProductOutStockBills(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/GetPageProductOutStockBills',
      method: 'post',
      data,
    });
  },
  //新建成品出库单【成品发货出库】
  CreateProductOutStockBill(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/CreateProductOutStockBill',
      method: 'post',
      data,
    });
  },
  //红冲成品出库单(根据出库单code)
  RedFlushProductOutStockBill(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/RedFlushProductOutStockBill',
      method: 'post',
      data,
    });
  },
  //获取成品出库详情
  GetSingleProductOutStockBill(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/GetSingleProductOutStockBill',
      method: 'post',
      data,
    });
  },
  //根据发货单号获取出库单详情
  GetOutStockDetailListByDeliveryNo(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/GetOutStockDetailListByDeliveryNo',
      method: 'post',
      data,
    });
  },
  //根据发货单号获取出库单详情（创建出库单时使用，返回的明细数据： 发货明细 - 库存明细）
  GetOutStockDetailListByDeliveryNo20230906(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/GetOutStockDetailListByDeliveryNo20230906',
      method: 'post',
      data,
    });
  },
  //获取出库单详情
  GetOutStockDetailListByOutStockNo(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/GetOutStockDetailListByOutStockNo',
      method: 'post',
      data,
    });
  },
  //取出库单详情（查询出库单详情时使用，返回的明细数据： 出库明细group by 产品规格 - 出库明细）
  ProductOutStockBill(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/ProductOutStockBill',
      method: 'post',
      data,
    });
  },
  //获取出库单详情（查询出库单详情时使用，返回的明细数据： 出库明细group by 产品规格 - 出库明细）
  GetOutStockDetailListByOutStockNo20230906(data?: any) {
    return request({
      url: '/api/ProductOutStockBill/GetOutStockDetailListByOutStockNo20230906',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
